<?php

use yii\helpers\Html;
use yii\widgets\DetailView;


/* @var $this yii\web\View */
/* @var $model common\models\CommentsRelation */

$this->title = '评论：'.$model->comment_id;
$this->params['breadcrumbs'][] = ['label' => '评论列表', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="comments-relation-view">

<!--    <h1><?/*= Html::encode($this->title) */?></h1>-->

    <p>
        <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a('Delete', ['delete', 'id' => $model->id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => 'Are you sure you want to delete this item?',
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
//            'id',
            'comment_id',
            'bestry_uid',
            'order_id',
//            'goods_id',
            'goods_detail.goods_name',
            'product_id',
           // 'level',
            [
                'label'=>'评价星级',
                'value'=>\common\models\CommentsRelation::$LEVEL[$model->level],
            ],

            'comments.content',
            'comments.img',
            'create_time',
            //'is_try',
            [
                'label'=>'类型',
                'value'=>\common\models\CommentsRelation::$IS_TRY[$model->is_try],
            ],
            //'is_reply',
            [
                'label'=>'有无回复',
                'value'=>\common\models\CommentsRelation::$IS_reply[$model->is_reply],
            ],

            'comments_reply.content',
            //'is_show',
            [
                'label'=>'是否展示',
                'value'=>\common\models\CommentsRelation::$IS_SHOW[$model->is_show],
            ],
            //'status',
            [
                'label'=>'状态',
                'value'=>\common\models\CommentsRelation::$STATUS[$model->status],
            ],
        ],
    ]) ?>

</div>
